package com.novel;

import com.novel.base.utils.SpringContextUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * 启动类
 *
 * @author 樊温军
 * @date 2018/11/01
 */
@EnableSwagger2
@SpringBootApplication
public class NovelForumApplication {

    public static void main(String[] args) {
        ApplicationContext app = SpringApplication.run(NovelForumApplication.class, args);
        SpringContextUtil.setApplicationContext(app);
        System.out.println("========================启动完毕========================");
        // 输出首页地址
        System.out.println("http://localhost:8081/view/login");
    }

}
